/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.seisys.entity.system;

import java.util.List;

/**
 * 区域Entity
 * 
 * @author ThinkGem
 * @version 2013-05-15
 */
public class Area {
	private String id;
	private String code; // 区域编码
	private String type; // 区域类型（1：国家；2：省份、直辖市；3：地市；4：区县）
	private int sort; // 分类
	private Area parent; // 父节点
	private String name; // 地区名称
	private String remarks; // 备注
	private List<Area> areaSub; // 用于构建树

	public Area() {
		this.sort = 30;
	}

	public Area(String id) {
		this.id = id;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Area getParent() {
		return parent;
	}

	public void setParent(Area parent) {
		this.parent = parent;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<Area> getAreaSub() {
		return areaSub;
	}

	public void setAreaSub(List<Area> areaSub) {
		this.areaSub = areaSub;
	}

	@Override
	public String toString() {
		return name;
	}
}